package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.R;
import com.itheima.common.UserResult;
import com.itheima.dto.LoginDto;
import com.itheima.pojo.SysUser;

public interface SysUserService extends IService<SysUser> {
    R login(LoginDto loginDto,String code);

    R findList(Integer pageNum, Integer pageSize, SysUser sysUser);

    R add(SysUser sysUser);

    UserResult findRoleAndPost();

    UserResult findById(Long userId);

    R modify(SysUser sysUser);

    R deleteById(Long userId);

    R modifyStatus(Integer number, Long userId);

    R ResetPassword(Long userId, String password);
}
